package cn.com.taurus.impl;

import cn.com.taurus.bean.FundFundTypeFundHoldWebBean;
import cn.com.taurus.bean.RedeemMessageBean;
import cn.com.taurus.bean.RedeemMessageWebBean;
import cn.com.taurus.bean.RedeemWebBean;
import cn.com.taurus.entity.RedeemMessage;
import cn.com.taurus.mapper.RedeemMessageMapper;
import cn.com.taurus.service.RedeemMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author zhy
 * @createTime 2021-6-3 20:49:18
 * @remark 赎回申请Impl层
 * @version 1.0
 */
@Service
public class RedeemMessageImpl implements RedeemMessageService {
    @Autowired
    RedeemMessageMapper redeemMessageMapper;
    @Override
    public int redeemApplication(RedeemMessage redeemMessage) {
        return redeemMessageMapper.redeemApplication(redeemMessage);
    }

    @Override
    public int redeemApplicationUpdate(RedeemMessage redeemMessage) {
        return redeemMessageMapper.redeemApplicationUpdate(redeemMessage);
    }

    @Override
    public int redeemApplicationDelete(Integer rmId) {
        return redeemMessageMapper.redeemApplicationDelete(rmId);
    }

    @Override
    public List<RedeemMessage> redeemApplicationSelectAll() {
        return redeemMessageMapper.redeemApplicationSelectAll();
    }

    @Override
    public RedeemMessage redeemApplicationSelectOne(Integer rmId) {
        return redeemMessageMapper.redeemApplicationSelectOne(rmId);
    }

    @Override
    public List<RedeemMessageBean> conditionSelectRedeemMessage(String caId, String fId, String applyRedeem, String applyTime, String time){
        return redeemMessageMapper.conditionSelectRedeemMessage(caId,fId,applyRedeem,applyTime,time);
    }

    @Override
    public FundFundTypeFundHoldWebBean selectFundFundTypeFundHold(int fhId){
        return redeemMessageMapper.selectFundFundTypeFundHold(fhId);
    }

    @Override
    public List<RedeemMessageWebBean> selectDealMessageCaId(Integer caId){
        return redeemMessageMapper.selectDealMessageCaId(caId);
    }

    @Override
    public List<RedeemWebBean> selectRedeemRecordByCaId(Integer caId){
        return redeemMessageMapper.selectRedeemRecordByCaId(caId);
    }
}
